<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import ="car.*" %>
<%
	String strIndex = request.getParameter("index");
	int index = Integer.parseInt(strIndex);
	Car car = CarList.get(index);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>編集</title>
	</head>
		<body>
			<form action ="UpdateServlet">
			ナンバー	
			<input type ="text" name="number"  value="<%=car.getNumber()%>"/><br/>
			車名　　
			<input type ="text" name="name" value="<%=car.getName() %>" /><br/>
			メーカー	
			<input type ="text" name="maker" value="<%=car.getMaker() %>" /><br/>
			<input type ="submit" value="更新"/>
			<input type="hidden"name="index"value="<%=strIndex %>"/>
			</form>
			<p>
				<a href="DeleteServlet?index=<%=strIndex %>">削除</a>
			</p>
		</body>
</html>